extends Label

func setTitle(v : String):
	self.text = v
	
func fadeIn(ms : int):
	self.self_modulate = Color(1, 1, 1, 0)
	var tween = $fade
	tween.interpolate_property(self, "self_modulate", Color(1, 1, 1, 0), Color(1, 1, 1, 1), ms / 1000.0)
	tween.start()
	
func fadeOut(ms : int):
	var tween = $fade
	tween.interpolate_property(self, "self_modulate", Color(1, 1, 1, 1), Color(1, 1, 1, 0), ms / 1000.0)
	tween.start()
